Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(starknet_gateway_types,starknet_http_server): move spec error conversion to the http server #2904

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

yair-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

@yair-starkware yair-starkware marked this pull request as ready for review December 23, 2024 14:49
Copy link

graphite-app bot commented Dec 23, 2024

Graphite Automations

"Yair - Auto-assign" took an action on this PR • (12/23/24)

1 assignee was added to this PR based on Yair's automation.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 5 files at r1, 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @yair-starkware)


crates/starknet_http_server/src/errors.rs line 33 at r2 (raw file):

    let general_rpc_error = match err {
        GatewayClientError::ClientError(e) => {
            error!("Got a gateway client: {}", e);

Encountered a ClientError

Code quote:

Got a gateway client

crates/starknet_http_server/src/errors.rs line 43 at r2 (raw file):

            source,
            p2p_message_metadata: _,
        }) => {

Please add a todo to into_rpc() on the entirety of GatewayError, not just the source member.

Code quote:

        GatewayClientError::GatewayError(GatewayError::GatewaySpecError {
            source,
            p2p_message_metadata: _,
        }) => {

@yair-starkware yair-starkware force-pushed the yair/fix_gw_error branch 2 times, most recently from 557330f to d361c98 Compare December 24, 2024 10:28
Copy link
Contributor Author

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @alonh5 and @Itay-Tsabary-Starkware)


crates/starknet_http_server/src/errors.rs line 33 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Encountered a ClientError

Done.


crates/starknet_http_server/src/errors.rs line 43 at r2 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Please add a todo to into_rpc() on the entirety of GatewayError, not just the source member.

Done.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @yair-starkware)


crates/starknet_http_server/src/errors.rs line 44 at r4 (raw file):

            p2p_message_metadata: _,
        }) => {
            // TODO(Itay): Add the p2p_message_metadata to the error response.
  1. I go by Tsabary :-)
  2. The todo is for you :-)

Non-blocking, but please change 👍

Code quote:

// TODO(Itay): Add the p2p_message_metadata to the error response.

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @alonh5 and @yair-starkware)

Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 4 of 4 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alonh5)

@yair-starkware yair-starkware added this pull request to the merge queue Dec 25, 2024
Merged via the queue into main with commit 757f879 Dec 25, 2024
20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants